<%@ page language="java" import="java.util.*" pageEncoding="utf-8" errorPage=""%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<jsp:useBean class="show.Detail_show" id="det" scope="request" />
<jsp:useBean class="show.Main_show" id="mai" scope="request" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="../js/themes/base/jquery.ui.all.css">
<script src="../js/jquery-1.5.1.js"></script>
<script src="../js/ui/jquery.ui.core.js"></script>
<script src="../js/ui/jquery.ui.widget.js"></script>
<script src="../js/ui/jquery.ui.datepicker.js"></script>
<script src="../js/ui/jquery.ui.tabs.js"></script>
<script>
	$(function() {
		$( "#datepicker" ).datepicker();
	});
</script>
</head>
<body background="../image/9d3c9c2082a1edaf08d876e.jpg">
<%         
		String Sname = (String)session.getAttribute("name");
		boolean isLog = false;
		if(Sname!=null)
		{
		      isLog =true;
		}
		int id = Integer.parseInt(request.getParameter("id").trim());
//		out.print("<script>alert("+id+");</script>");
		int index = 0;
		index = mai.getID().indexOf(id);
//		int index = 2;
		String name = (String)det.getNAME().get(index);
		if(Sname ==null)
		{
		out.print("<b style='color:#FF0000'>您的身份认证已过期，请重新登录！</b>");
		}
		else
		{
		out.print("<div id=tableDiv style='position:absolute;top:80px;left:300px'><font color='red'><form name='changeForm' id='changeForm' action='modify.jsp' method='post'><table align='center'>");
		//在这儿改变字体或者其它什么的你想改变的↑
		out.print("<tr><td>电话</td><td><input type='text' name='tel' onclick='this.value=\"\";' value='"+mai.getTEL().get(index)+"' /></td><td></td><td></td></tr>");
		out.print("<tr><td></td><td></td><td>电邮</td><td><input type='text' name='mail' onclick='this.value=\"\";' value='"+mai.getMAIL().get(index)+"' /></td></tr>");
		out.print("<tr><td>性别</td><td><input type='radio' name='sex' value='boy' Checked='girl' />boy<input type='radio' name='sex' value='girl' />girl</td><td></td><td></td></tr>");
		out.print("<tr><td></td><td></td><td>住址</td><td><input type='text' name='local' onclick='this.value=\"\";' value='"+mai.getLOCAL().get(index)+"' /></td></tr>");
		out.print("<tr><td>腾讯</td><td><input type='text' name='qq' onclick='this.value=\"\";' value='"+mai.getQQ().get(index)+"' /></td><td></td><td></td></tr>");
		out.print("<tr><td></td><td></td><td>父亲</td><td><input type='text' name='pa' onclick='this.value=\"\";' value='"+det.getPA().get(index)+"' /></td></tr>");
		out.print("<tr><td>母亲</td><td><input type='text' name='ma' onclick='this.value=\"\";' value='"+det.getMA().get(index)+"' /></td><td></td><td></td></tr>");
		out.print("<tr><td></td><td></td><td>小学</td><td><input type='text' name='pri' onclick='this.value=\"\";' value='"+det.getPRIMARY().get(index)+"' /></td></tr>");
		out.print("<tr><td>初中</td><td><input type='text' name='mid' onclick='this.value=\"\";' value='"+det.getMIDDLE().get(index)+"' /></td><td></td><td></td></tr>");
		out.print("<tr><td></td><td></td><td>高中</td><td><input type='text' name='hig' onclick='this.value=\"\";' value='"+det.getHIGH().get(index)+"' /></td></tr>");
		out.print("<tr><td>食物</td><td><input type='text' name='food' onclick='this.value=\"\";' value='"+det.getFOOD().get(index)+"' /></td><td></td><td></td></tr>");
		out.print("<tr><td></td><td></td><td>生日</td><td><input type='text' id='datepicker' name='birth' value='1/1/1990' /></td></tr>");
		out.print("<tr><td><input type='hidden' name='id' value='"+id+"' /></td></tr>");
		out.print("</table>");
		if(isLog)
		{
		     out.print("<div align='center'>");
			 out.print("<input type='submit' value='提交修改' /></div>");
		}
		out.print("</form></font></div>");
		}
%>
</body>
</html>